dnl Process this file with autoconf to produce a configure script.
dnl Created by Anjuta application wizard.

AC_INIT(invulgotracker, 1.10, www.invulgo.dk)

AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_MAINTAINER_MODE

AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC


AC_PROG_CPP
AC_PROG_CXX

AC_ARG_ENABLE([debug],[  --enable-debug  Enable debugging],
  [if test "$enableval" != "debug"; then
    CFLAGS="-g -O0 -Wall"
    CXXFLAGS="-g -O0 -Wall"
    AC_SUBST(CFLAGS)
    AC_SUBST(CXXFLAGS)
  fi
  ], [
    CFLAGS="-O2 -Wall"
    CXXFLAGS="-O2 -Wall"
    AC_SUBST(CFLAGS)
    AC_SUBST(CXXFLAGS)
    ])



dnl ***************************************************************************
dnl Internatinalization
dnl ***************************************************************************
GETTEXT_PACKAGE=invulgotracker
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
AM_GLIB_GNU_GETTEXT
IT_PROG_INTLTOOL([0.35.0])



AM_PROG_LIBTOOL



PKG_CHECK_MODULES(INVULGOTRACKER, [gtk+-2.0 >= 2.8 libglade-2.0 >= 2.6.0 libxml-2.0 >= 2.0 gnome-vfs-2.0 >= 2.4])

AC_CHECK_HEADERS([pthread.h],
                 AC_DEFINE([HAVE_PTHREAD_H],[1],[Define if pthread exists]),
                 AC_MSG_ERROR([pthread support is required to build InvulgoTracker]))


AC_OUTPUT([
Makefile
src/Makefile
po/Makefile.in
])
